package org.rcy.ruicingmarket.category;

import lombok.Data;
import org.rcy.framework.api.entity.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;
import java.util.List;

/**
 * @author 吴康桥
 * @Description
 * @date 2022/12/20 11:44
 */

@Data
@Entity
@Table(name = "category")
public class Category extends BaseEntity {

	private String name;
	private Long pid;
	private String description;
	private Date createTime;
	@Transient
	private List<Category> children;
}
